<?xml version="1.0"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
          xmlns:o="urn:schemas-microsoft-com:office:office"
          xmlns:x="urn:schemas-microsoft-com:office:excel"
          xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
          xmlns:html="http://www.w3.org/TR/REC-html40">
    <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
        <Author>Microsoft Office User</Author>
        <LastAuthor>Microsoft Office User</LastAuthor>
        <Created>2021-01-06T13:08:15Z</Created>
        <LastSaved>2021-01-09T13:02:17Z</LastSaved>
        <Version>16.00</Version>
    </DocumentProperties>
    <OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
        <AllowPNG/>
    </OfficeDocumentSettings>
    <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
        <WindowHeight>18000</WindowHeight>
        <WindowWidth>16000</WindowWidth>
        <WindowTopX>32767</WindowTopX>
        <WindowTopY>32767</WindowTopY>
        <ProtectStructure>False</ProtectStructure>
        <ProtectWindows>False</ProtectWindows>
    </ExcelWorkbook>
    <Styles>
        <Style ss:ID="Default" ss:Name="Normal">
            <Alignment ss:Vertical="Center"/>
                                            <Borders/>
                                                     <Font ss:FontName="等线" x:CharSet="134" ss:Size="12" ss:Color="#000000"/>
                                                                                                                            <Interior/>
                                                                                                                                      <NumberFormat/>
                                                                                                                                                    <Protection/>
        </Style>
        <Style ss:ID="s62" ss:Name="超链接">
            <Font ss:FontName="等线" x:CharSet="134" ss:Size="12" ss:Color="#0563C1"
            ss:Underline="Single"/>
        </Style>
    </Styles>
    <Worksheet ss:Name="${schema!''}">
        <Table ss:ExpandedColumnCount="2" ss:ExpandedRowCount="${tables?size+6}" x:FullColumns="1"
               x:FullRows="1" ss:DefaultColumnWidth="65" ss:DefaultRowHeight="16">
            <Column ss:Width="102" ss:Span="1"/>
            <Row ss:AutoFitHeight="0">
                <Cell><Data ss:Type="String">数据库名</Data></Cell>
                <Cell><Data ss:Type="String">${schema!''}</Data></Cell>
            </Row>
            <Row ss:AutoFitHeight="0">
                <Cell><Data ss:Type="String">文档版本</Data></Cell>
                <Cell><Data ss:Type="String">${version!''}</Data></Cell>
            </Row>
            <Row ss:AutoFitHeight="0">
                <Cell><Data ss:Type="String">文档描述</Data></Cell>
                <Cell><Data ss:Type="String">${description!''}</Data></Cell>
            </Row>
            <Row ss:Index="5" ss:AutoFitHeight="0">
                <Cell><Data ss:Type="String">表名</Data></Cell>
                <Cell><Data ss:Type="String">说明</Data></Cell>
            </Row>
            <#list tables>
                <#items as t>
                    <Row ss:AutoFitHeight="0">
                        <Cell ss:StyleID="s62" ss:HRef="#${t.tableName!''}!A1"><Data ss:Type="String">${t.tableName!''}</Data></Cell>
                        <Cell><Data ss:Type="String">${t.remarks!''}</Data></Cell>
                    </Row>
                </#items>
            </#list>
        </Table>
        <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
            <PageSetup>
                <Header x:Margin="0.3"/>
                <Footer x:Margin="0.3"/>
                <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
            </PageSetup>
            <Unsynced/>
            <Selected/>
            <Panes>
                <Pane>
                    <Number>3</Number>
                    <ActiveRow>5</ActiveRow>
                    <ActiveCol>1</ActiveCol>
                </Pane>
            </Panes>
            <ProtectObjects>False</ProtectObjects>
            <ProtectScenarios>False</ProtectScenarios>
        </WorksheetOptions>
    </Worksheet>
    <#list tables><#items as t>
        <Worksheet ss:Name="${t.tableName!''}">
            <Table ss:ExpandedColumnCount="8" ss:ExpandedRowCount="${t.columns?size+6}" x:FullColumns="1"
                   x:FullRows="1" ss:DefaultColumnWidth="65" ss:DefaultRowHeight="16">
                <Column ss:Width="102" ss:Span="1"/>
                <Row ss:AutoFitHeight="0">
                    <Cell><Data ss:Type="String">表名</Data></Cell>
                    <Cell ss:StyleID="s62"  ss:HRef="#${schema!''}!A1"><Data ss:Type="String">${t.tableName!''}</Data></Cell>
                </Row>
                <Row ss:AutoFitHeight="0">
                    <Cell><Data ss:Type="String">说明</Data></Cell>
                    <Cell><Data ss:Type="String">${t.remarks!''}</Data></Cell>
                </Row>
                <Row ss:AutoFitHeight="0">
                    <Cell><Data ss:Type="String"></Data></Cell>
                </Row>
                <Row ss:Index="4" ss:AutoFitHeight="0">
                    <Cell><Data ss:Type="String">数据列</Data></Cell>
                </Row>
                <Row ss:AutoFitHeight="0">
                    <Cell><Data ss:Type="String">编号</Data></Cell>
                    <Cell><Data ss:Type="String">列名</Data></Cell>
                    <Cell><Data ss:Type="String">数据类型</Data></Cell>
                    <Cell><Data ss:Type="String">小数位</Data></Cell>
                    <Cell><Data ss:Type="String">是否为空</Data></Cell>
                    <Cell><Data ss:Type="String">是否为主键</Data></Cell>
                    <Cell><Data ss:Type="String">默认值</Data></Cell>
                    <Cell><Data ss:Type="String">备注</Data></Cell>
                </Row>
                <#list t.columns>
                    <#items as c>
                        <Row ss:AutoFitHeight="0">
                            <Cell><Data ss:Type="String">${c?index+1}</Data></Cell>
                            <Cell><Data ss:Type="String">${c.columnName!''}</Data></Cell>
                            <Cell><Data ss:Type="String">${c.columnType!''}</Data></Cell>
                            <Cell><Data ss:Type="String">${c.decimalDigits!'0'}</Data></Cell>
                            <Cell><Data ss:Type="String">${c.isNullable!''}</Data></Cell>
                            <Cell><Data ss:Type="String">${c.primaryKey!''}</Data></Cell>
                            <Cell><Data ss:Type="String">${c.columnDef!''}</Data></Cell>
                            <Cell><Data ss:Type="String">${c.remarks!''}</Data></Cell>
                        </Row>
                    </#items>
                </#list>
            </Table>
            <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
                <PageSetup>
                    <Header x:Margin="0.3"/>
                    <Footer x:Margin="0.3"/>
                    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
                </PageSetup>
                <Panes>
                    <Pane>
                        <Number>3</Number>
                        <ActiveRow>3</ActiveRow>
                    </Pane>
                </Panes>
                <ProtectObjects>False</ProtectObjects>
                <ProtectScenarios>False</ProtectScenarios>
            </WorksheetOptions>
        </Worksheet>
    </#items></#list>
</Workbook>
